package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;
import java.util.List;


/**
 * <p>
 * 区域服务表 服务类
 * </p>
 * @author dmr
 * @since 2024-10-27
 */
public interface IServeService extends IService<Serve> {


    PageResult<ServeResDTO> pageByReginIdQuery(ServePageQueryReqDTO servePageQueryReqDTO);


    void update(Long serveId,Double price);

    void saveBatch(List<ServeUpsertReqDTO> entityList);

    void onSale(Long serveId);

    void offSale(Long serveId);

    void delete(Long serveId);

    void onHot(Long serveId);

    void offHot(Long serveId);

}
